package com.heima.model.behavior.dtos;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReadBehaviorDto {
    private Long articleId;
    private Integer count;

    public void checkParam(){
        if(this.count==null||this.count==0){
            this.count=1;
        }
    }
}
